<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<script src="lib/easeljs-0.7.1.min.js"></script>
</head>
<body>
	<canvas id="mycanvas" width="500px" height="500px" style="border: 1px solid #ccc;"></canvas>

</body>
</html>

<script>
	var stage = new createjs.Stage("mycanvas");
	var mycanvas = new createjs.Container();
	stage.addChild(mycanvas);
	var Rect = new createjs.Shape();
	Rect.graphics.beginFill("red").drawRect(0,0,100,100);
	mycanvas.addChild(Rect);
	stage.update();
	Rect.addEventListener("dblclick",function (e) {
		alert("点击的位置"+e.localX+", "+e.localY)
	})
</script>